/**
 * 
 */
package hichecker.university.jaxb;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * Class that represents a HashMap into a compact format
 */
@XmlRootElement
public class CompactHash {

	private @XmlElement(name = "student") List<StudentElement> students;

	/**
	 * @return the list of all students with their values
	 */
	@XmlTransient
	public List<StudentElement> getStudents() {
		return students = (students == null ? new ArrayList<StudentElement>() : students);
	}
	
}
